<template>
  <div>
    <el-dialog
      v-model="centerDialogVisible"
      title="会议信息"
      width="50%"
      align-center
      :close="handelClose"
      class="dialogStyle"
    >
      <el-form :model="formInline" class="demo-form-inline" label-width="100px">
        <el-form-item label="所属项目">
          <el-input disabled v-model="formInline.projectName" placeholder="所属项目" />
        </el-form-item>
        <el-form-item label="所属部门">
          <el-input disabled v-model="formInline.departmentId" placeholder="所属部门" />
        </el-form-item>
        <el-form-item label="申请人">
          <el-input disabled v-model="formInline.applicant" placeholder="申请人" />
        </el-form-item>
        <el-form-item label="议题名称">
          <el-input disabled v-model="formInline.meetingName" placeholder="议题名称" />
        </el-form-item>
  
        <el-form-item label="会议时间">
          <!-- <el-date-picker
            v-model="formInline.meetingTime"
            type="daterange"
            range-separator="-"
            start-placeholder="开始时间"
            end-placeholder="结束时间"
          /> -->
          <el-input disabled v-model="formInline.meetingTime" placeholder="会议时间"></el-input>
        </el-form-item>
        <el-form-item label="审批部门">
          <el-input disabled v-model="formInline.examineDepartmentId" placeholder="审批部门" />
        </el-form-item>
        <el-form-item label="审批人">
          <el-input disabled v-model="formInline.examinePerson" placeholder="审批人" />
        </el-form-item>
        <el-form-item label="审批">
          <el-radio-group disabled v-model="formInline.status">
            <el-radio :label="1">同意</el-radio>
            <el-radio :label="-1">拒绝</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="意见" class="oneline">
          <el-input disabled v-model="formInline.opinion" show-word-limit type="textarea" />
        </el-form-item>
      </el-form>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="centerDialogVisible = false" class="button_cancel2">取消</el-button>
          <el-button @click="centerDialogVisible = false" class="button_view">
            确定
          </el-button>
        </span>
      </template>
    </el-dialog>
  </div>
</template>
<script setup>

import { ref, reactive } from 'vue'
import { ElDialog, ElForm, ElFormItem } from 'element-plus'
import { projectConfigApi } from "@/api/project";

components: {
  ElDialog, ElForm, ElFormItem
}
const props = defineProps({
  isShow:{
    default:true,
    type:Boolean
  },
})
const formInline = ref({})
const handelClose = () => {
  centerDialogVisible.value = false
  emits('handelClose')
}
const getConferenceView = (id) => {
  projectConfigApi.getConferenceView(id).then((res) => {
		if (res.code == 200) {
      formInline.value = res.data;
			console.log('111',formInline.value);
		}
	});
}

const emits = defineEmits(['handelClose'])
let centerDialogVisible = ref(false)
const open = (id) => {
  centerDialogVisible.value = true
  getConferenceView(id)
}
defineExpose({
  open,
})

</script>
<style lang="scss" scoped>
@import '@/views/constructionProjectManage/static/dialog.scss';
</style>
